package pl.edu.utp.kursy.comparators;

import java.util.Comparator;
import pl.edu.utp.kursy.database.InoviceRow;

public class InoviceRowComparator implements Comparator<InoviceRow>{

    @Override
    public int compare(InoviceRow o1, InoviceRow o2) {
        if(o1.getLp() == o2.getLp()){
            return 0;
        }else if(o1.getLp() > o2.getLp()){
            return 1;
        }else if(o1.getLp() < o2.getLp()){
            return -1;
        }
        return 1;
    }
    
}
